#include <2025Linux.h>
int main(int argc, char *argv[])
{
    //  ./10_pipe_open_write 1.pipe 
    ARGS_CHECK(argc,2);
    int fdw = open(argv[1],O_WRONLY); //O_WRONLY只读打开
    ERROR_CHECK(fdw,-1,"open");
    printf("fdw is opened!\n");
    while(1){
        sleep(1);//写端不写入，写端也不退出，先永久阻塞
    }
    return 0;
}

